<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>welcome</title>
    <style type="text/css" >
        #app{
            color: red;
            font-weight: bolder;
        }
        .a{
            width: 100px;
            height: 100px;
            background: cornflowerblue;
        }
    </style>
</head>
<body>
    <div id="app">
        <!--<input type="text" v-model="name" placeholder="你的名字">
        <input type="text" v-model="id" placeholder="id">
        <h1>hello,{{name}}&#45;&#45;&#45;&#45;&#45;&#45;{{id}}</h1>-->
        <span @click="change">toggle</span>
        <div class="a" v-if="isshow"/>

        <!--<div class="a" v-show="true"><h1 style="color:#000;border: 1px solid blue">123</h1></div>-->
    </div>

    <script src="js/vue.min.js"></script>
    <script>
        /*var app = new Vue({
            el:"#app",
            data:{name:"",id:""}
        })*/
        var app = new Vue({
            el:"#app",
            data:{isshow:true},
            methods:{
                change:function(){
                    this.isshow=!this.isshow;
                }
            }
        })
    </script>
</body>
</html>